package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageData;
import com.woniu.entity.dto.QueryMessageDTO;
import com.woniu.pojo.Message;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaosong
 * @since 2023-04-01
 */
public interface IMessageService extends IService<Message> {
    PageData select(Integer currentPage, Integer pageSize, QueryMessageDTO messageDTO);

    boolean add(Message message);

    boolean updateMessage(Message message);

    Integer getUnread(Integer id);
}
